package com.dmz.book.entitys;

public class JsonResultEntity <T>{
    private T data;
    private String code;
    private String msg;

    public JsonResultEntity() {
    }

    public JsonResultEntity(T data) {
        this.code="0";
        this.msg="操作成功";
        this.data = data;
    }

    public JsonResultEntity(T data, String msg) {
        this.data = data;
        this.msg = msg;
        this.code="0";
    }

    public JsonResultEntity(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
